<html>
  <head>
    <title>Registration Form</title>
  </head>
  <body>
    <form name="register" >
      <table border="1" cellpadding="5  " align="center" width="80%">
        <thead>
          <tr><th colspan="2">Please fill the details</th></tr>
        </thead>
        <tbody>
          <tr>
            <td align="right">Name :</td>
            <td>
                <input  name="uname" type="text" value="Rasmus Lerdorf" placeholder="My name is"/>
          </td>
          </tr>
          <tr>
            <td align="right">&nbsp;</td>
            <td><input onClick="return validate();" type="submit"/></td>
          </tr>
        </tbody>
      </table>
    </form>

    </body>
</html>
    <script>
      alert(document.register.uname.value)
    </script>
